package com.hutao.manage.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.hutao.manage.pojo.FirstLevelMedical;
import com.hutao.manage.util.Params;

public interface FirstLevelMedicalMapper {


    int deleteByPrimaryKey(String guid);

    int insert(FirstLevelMedical record);

    int insertSelective(FirstLevelMedical record);

    FirstLevelMedical selectByPrimaryKey(String guid);
    
    List<FirstLevelMedical> getFirstLevelMedicalList();

    int updateByPrimaryKeySelective(FirstLevelMedical record);

    int updateByPrimaryKey(FirstLevelMedical record);
    
    //根据姓名和身份证获取患者信息
    List<Map<String,Object>> getPatientMsg(@Param("citizensGuid") String citizensGuid);
    
    //根据姓名和身份证获取公民信息
    List<Map<String,Object>> getCitizenByNameAndIdNumber(Params params);
    
    //判断某份病案是否已经上架
    long getPatientPutAwayByGuid(String firstGuid);
    
    Map<String, Object> findFirstLevelMedicalByFirstGuid(String firstGuid);
    
    List<String> getFirstGuidByMrIdAndVisitNumber(@Param("mrId")String mrId,@Param("visitNumber")Integer visitNumber);
  
    int insertUploadVisitGuid(@Param("visitGuid")String visitGuid,@Param("mrId")String mrId,@Param("visitNumber")Integer visitNumber);
    
    List<Map<String,Object>> getUploadVisitGuid();
    
    int deleteUploadVisitGuid(@Param("visitGuid")String visitGuid);
}